Integration Service Error with Gmail Activities and Cross Platform Library

When building a library in Cross Platform Compatibility, and selecting a connection in an activity, I then deploy that activity and consume in a process. The activity has int service connection arguments that auto populate for me to select my desired connection when using the library. After selecting the arguments, my project fails to build with error:

Unexpected error has occurred during the library compilation process:
CacheMetadata for activity 'System.Activities.DynamicActivity, System.Activities, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' threw 'System.InvalidOperationException: Could not extract value from InArgument. Details: InArgument expression is null
   at IntService.Test_Activity.ExtractStringLiteral(InArgument`1 inArgument)
   at IntService.Test_Activity.UpdateBindingsFromUserInput()
   at IntService.Test_Activity.GetImplementation()
   at System.Activities.Activity.OnInternalCacheMetadata(Boolean createEmptyBindings)
   at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList`1& validationErrors)
   at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack`1& activitiesRemaining, ActivityCallStack parentChain, IList`1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback)
   at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
   at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
   at System.Activities.XamlIntegration.TextExpressionCompiler.Parse()'.

in my project file (test activity xaml):

in my library file:

project dependencies:
Screenshot 2024-05-17 101534

library dependencies:
Screenshot 2024-05-17 101554

@Mason_Turvey_Silver

The error message indicates that there’s an issue with the InArgument expression being null within the System.Activities.DynamicActivity class.

Look into the ExtractStringLiteral method within your Test_Activity class. Verify that it’s handling InArgument expressions correctly and that it’s not expecting a non-null value when it’s actually null.

Also please share the code for further investigation.

@aravindbalineni123 thanks for the response.

The code I shared is the entire code for both projects. I haven’t created any arguments in the code or other workflows, in order to isolate the issue.

I simply dropped in the integration service and log activities, configured and ran the test xaml then published the library.

@Scott_Schoenberger do you have any insight here or can link anyone from the int serv team to assist?