Answered by:
"System.Int64". Error: "Input string was not in a correct format

Question
-
Hi All ,
We are recently encountering the below issue . It was working fine last week . suddenly we are getting this issue .
Cannot convert argument "type", with value:
"System.Int64". Error: "Input string was not in a correct format
Thursday, November 30, 2017 8:13 PM
Answers
-
search where [int64] type casting is happening in the script. Use debugger if the value is getting set dynamically.
The error message should show the line where it fails.
Regards kvprasoon
- Proposed as answer by Albert LingMicrosoft contingent staff Tuesday, December 5, 2017 6:51 AM
- Marked as answer by MeRagZ Tuesday, December 5, 2017 3:24 PM
Saturday, December 2, 2017 2:51 PM
All replies
-
This causes that error:
[int]'abc'
You need to fix your script.
This forum is not a free help desk for end users. It is for technicians writing PowerShell scripts.
\_(ツ)_/
Thursday, November 30, 2017 8:24 PM -
Thanks for your response . I understood .
But my question is for what is causing the all of sudden issue if nothing is changed .
Thursday, November 30, 2017 8:30 PM -
Obviously something changed. You need to contact a trained tech to sort this out for you.
\_(ツ)_/
Thursday, November 30, 2017 8:43 PM -
Hi,
I agree with jrv. This issue is probably caused by the type of the value does not match the predefined type.
Furthermore, it would be helpful for us to identify the problem if you could upload the code.
If you need further help, please feel free to let us know.
Best Regards,
Albert LingPlease remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- Proposed as answer by Albert LingMicrosoft contingent staff Tuesday, December 5, 2017 6:51 AM
Friday, December 1, 2017 6:11 AM -
search where [int64] type casting is happening in the script. Use debugger if the value is getting set dynamically.
The error message should show the line where it fails.
Regards kvprasoon
- Proposed as answer by Albert LingMicrosoft contingent staff Tuesday, December 5, 2017 6:51 AM
- Marked as answer by MeRagZ Tuesday, December 5, 2017 3:24 PM
Saturday, December 2, 2017 2:51 PM -
Hi,
Just checking in to see if the information provided was helpful.
Please let us know if you would like further assistance.
Best Regards,
Albert LingPlease remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.comTuesday, December 5, 2017 6:51 AM