Symptoms
Getting the error exception below when attempting to create a PandD package:
Error
Exception has been thrown by the target of an invocation.
Type:
SourceCode.SmartObjects.Client.SmartObjectException
Source:
SourceCode.SmartObjects.Client
Method Base
Member Type:
Method
Name:
ExecuteScalar
Module
Scope Name:
SourceCode.SmartObjects.Client.dll
Declaring Type
Full Name:
SourceCode.SmartObjects.Client.SmartObjectClientServer
Stack Trace:
at SourceCode.SmartObjects.Client.SmartObjectClientServer.ExecuteScalar(SmartObject smartObject, DataTable inputTable)
at SourceCode.Forms.AppFramework.FormRuntime.SmartObjectExecution(XPathNavigator nav, Boolean outputDependencies, SmartObjectClientServer svr)
at SourceCode.Forms.AppFramework.FormRuntime.WorkXmlToApi(String xml)
at SourceCode.Forms.Runtime.AJAXCall.ProcessRequest(HttpContext context)
This prevents me from creating a package of my solution.
Diagnoses
It was determined the issue was due to the filename being too long when attempting to create a package:
"System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."
In the back end database, we noticed notice that the length of the association names (which are also used as the filename for the relevant association) were exceedingly long.
Resolution
This will be addressed when Appit 1. 4 ships, ETA second quarter of 2016.
An isolated patch is available for Appit 1.3. If you are currently on Appit 1.3 and you encounter this issue please contact K2 Support.