Chris Harrington
Chris Harrington

Reputation: 1316

How is one supposed to make sense out of this error?

Invocation details says: "Failure Script compilation failed." It doesn't tell me what file or what line. This is a real productivity impediment.

Develop log is empty.

Monitor log show:

Exception while executing function: Functions.DmsBlobTrigger2
Microsoft.Azure.WebJobs.Host.FunctionInvocationException : Exception while executing function: Functions.DmsBlobTrigger2 ---> Microsoft.CodeAnalysis.Scripting.CompilationErrorException : Script compilation failed.
   at async Microsoft.Azure.WebJobs.Script.Description.DotNetFunctionInvoker.CreateFunctionTarget(CancellationToken cancellationToken)
   at async Microsoft.Azure.WebJobs.Script.Description.FunctionLoader`1.GetFunctionTargetAsync[T](Int32 attemptCount)
   at async Microsoft.Azure.WebJobs.Script.Description.DotNetFunctionInvoker.GetFunctionTargetAsync()
   at async Microsoft.Azure.WebJobs.Script.Description.DotNetFunctionInvoker.InvokeCore(Object[] parameters,FunctionInvocationContext context)
   at async Microsoft.Azure.WebJobs.Script.Description.FunctionInvokerBase.Invoke(Object[] parameters)
   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker`1.InvokeAsync[TReflected](Object[] arguments)
   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.InvokeAsync(IFunctionInvoker invoker,Object[] invokeParameters,CancellationTokenSource timeoutTokenSource,CancellationTokenSource functionCancellationTokenSource,Boolean throwOnTimeout,TimeSpan timerInterval,IFunctionInstance instance)
   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithWatchersAsync(IFunctionInstance instance,IReadOnlyDictionary`2 parameters,TraceWriter traceWriter,CancellationTokenSource functionCancellationTokenSource)
   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??)
   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??) 
   End of inner exception

Upvotes: 1

Views: 623

Answers (1)

flyte
flyte

Reputation: 1322

This, plus the lack of good intellisense, compile time error checking, and unit testability is why I do not recommend proceeding with the CSX approach. Instead, I would suggest the pre-compiled function approach as described here

I have done it and never looked back. Makes our function development 100x more productive.

Upvotes: 1

Related Questions