Message 1 of 2
"System.Collections.ArrayList" cannot be converted to type "System.String"

Not applicable
04-13-2016
04:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys and girls,
i got aproblem with rule making.
i got the following fail-message:
german:
Fehler in Regel: StehendOderDecke in Dokument: 283219_363320.iam
Das Objekt des Typs "System.Collections.ArrayList" kann nicht in Typ "System.String" umgewandelt werden.
english(translated by myself):
Failure in rule: StehendoderDecke (name of rule) in document 283219_363320.iam.
The object of the type "System.Collections.ArrayList" cannot be converted to type "System.String"
the code is:
SyntaxEditor Code Snippet
If montage = "Stehend" Then Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283221 - 00 - Paternostereinheit links Hub 550 BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:1"))) = True Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283221 - 00 - Paternostereinheit links Hub 550 BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:2"))) = True Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283240 - 00 - Paternostereinheit rechts Hub 550 BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:1"))) = True Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283240 - 00 - Paternostereinheit rechts Hub 550 BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:2"))) = True Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:1") = False Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:2") = False Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:3") = False Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:4") = False Component.IsActive("285609 - - Verglasung Boden:1") = False Else 'Haltewinkel Decke + Komponenten aktiv Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:1") = True Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:2") = True Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:3") = True Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:4") = True Component.IsActive("285609 - - Verglasung Boden:1") = True Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283221 - 00 - Paternostereinheit links Hub 550 BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:1"))) = False Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283221 - 00 - Paternostereinheit links Hub 550 BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:2"))) = False Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283240 - 00 - Paternostereinheit rechts Hub 550 BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:1"))) = False Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283240 - 00 - Paternostereinheit rechts Hub 550 BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:2"))) = False End If iLogicVb.UpdateWhenDone = True
It would be perfect if someone can correct or help me!
Best regards,
Daniel