Hello @TerriblyVexed ,
To pass parameters, please make sure the cell has marked to parameter cell as shown below.
Try to split the code into two cells and first cell should be marked as toggle parameter cell and modify the code as shown below:
Cell1:[Marked as parameters]
CDMList = ''
DBList = ''
Cell2:
from notebookutils import mssparkutils
set1 = set(CDMList.split(','))
set2 = set(DBList.split(','))
missing = list(sorted(set1 - set2))
#print(missing)
mssparkutils.notebook.exit(missing)
Try to remove the single quotes in the parameters.
Note: If you use the parameters with the single quotes the excepted output: "exitValue": "[\"'LocalAccountCoverage'\", \"'LocalAccountSubject'\", \"'LocalActivityDefinitionObservationRequirement'\"]",
Now you will see the excepted output as shown below:
Hope this will help. Please let us know if any further queries.
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of [Q&A Volunteer Moderators][50}