Unexpected error has occurred during the library compilation process: The assembly compilation returned the following errors: * Labels that are numbers must be followed by colons

Hi,

I’m getting the following error when compiling:

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • Labels that are numbers must be followed by colons.

image

image

I have narrowed it down to the switch activity, which seems to cause the error.

I dont know what labels are in this case. I have tried to add a “:” see below(marked green):

I have also tried to add the colon(“:”) to the “case” on the left side without any success.
What is causing this problem?

@atomic

What’s the TypeArgument you’ve used?

Did u try with solution

@atomic

@monsieurrahul

image

Hi @Palaniyappan ,

I had(powershell window) alongside with the Runtime 6.0.16 installed 2023-05-05, see below(marked green):
image

Downloaded and restarted the server still same issue.
image

Do I need to configure something or perform any changes?

Hi @atomic ,

Could you maybe try to narrow it down a bit more, by removing each case in the Switch activity one by one and checking if it still gives out the error ?

Remove the labels from the sequences and see if it fixes it.

@supermanPunch @Palaniyappan @monsieurrahul @postwick

Hi,

I found the issue and I’m a bit embarrassed about it.
One of the cases used a number instead of a variable in the assign:

And for some reason UiPath Studio did not alert for this at all. I even used the Analyze and validate process/project tools:
image

If I put my marker in the field in the assign activity then I get an error:
image

So this was my mistake but maybe the error should have shown up nevertheless?

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.