sfswitch
sfswitch copied to clipboard
Salesforce Switch Error
Hi Ben,
I am getting this error when trying to use Salesforce Switch:
There was an error processing your request: Traceback (most recent call last): File "/app/enable_disable/tasks.py", line 130, in get_metadata for component in metadata_client.service.readMetadata('WorkflowRule', query_list)[0]: File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 542, in call return client.invoke(args, kwargs) File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 602, in invoke result = self.send(soapenv) File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 649, in send result = self.failed(binding, e) File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 702, in failed r, p = binding.get_fault(reply) File "/app/.heroku/python/lib/python2.7/site-packages/suds/bindings/binding.py", line 265, in get_fault raise WebFault(p, faultroot) WebFault: Server raised fault: 'UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1241321272-120388 (491286576)'
I'm getting a similar error. It occurs in Production, but not the full sandbox of the same org. `There was an error processing your request: Traceback (most recent call last): File "/app/enable_disable/tasks.py", line 130, in get_metadata for component in metadata_client.service.readMetadata('WorkflowRule', query_list)[0]: File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 542, in call return client.invoke(args, kwargs) File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 602, in invoke result = self.send(soapenv) File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 649, in send result = self.failed(binding, e) File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 702, in failed r, p = binding.get_fault(reply) File "/app/.heroku/python/lib/python2.7/site-packages/suds/bindings/binding.py", line 265, in get_fault raise WebFault(p, faultroot) WebFault: Server raised fault: 'UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1059542797-259933 (-1011176768)'
Please return to the home page and try again.`
I'm getting the same error, only in Production:
Traceback (most recent call last): File "/app/enable_disable/tasks.py", line 130, in get_metadata for component in metadata_client.service.readMetadata('WorkflowRule', query_list)[0]: File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 542, in call return client.invoke(args, kwargs) File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 602, in invoke result = self.send(soapenv) File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 649, in send result = self.failed(binding, e) File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 702, in failed r, p = binding.get_fault(reply) File "/app/.heroku/python/lib/python2.7/site-packages/suds/bindings/binding.py", line 265, in get_fault raise WebFault(p, faultroot) WebFault: Server raised fault: 'UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1597570746-72920 (683869076)'
Same error Trying to use the tool in a lightning production org.
There was an error processing your request: Traceback (most recent call last): File "/app/enable_disable/tasks.py", line 130, in get_metadata for component in metadata_client.service.readMetadata('WorkflowRule', query_list)[0]: File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 542, in call return client.invoke(args, kwargs) File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 602, in invoke result = self.send(soapenv) File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 649, in send result = self.failed(binding, e) File "/app/.heroku/python/lib/python2.7/site-packages/suds/client.py", line 702, in failed r, p = binding.get_fault(reply) File "/app/.heroku/python/lib/python2.7/site-packages/suds/bindings/binding.py", line 265, in get_fault raise WebFault(p, faultroot) WebFault: Server raised fault: 'UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1765614604-52861 (-346804132)'
I opened a ticket with SFDC developer support to see if I can get more detail on the error.
SFDC Says two of our workflow rules are throwing a null pointer exception. At this point I have what sounds like an org specific cause but since I am not the only one experiencing the issue I need more info to continue troubleshooting @benedwards44 ?
I've been trying to copy and deploy the code myself (I'm pretty green with django/heroku) Getting 500 errors 'get_metadata'
Since it's only in prod that its happening I wonder if it is related to the sandbox variable that was added? https://github.com/benedwards44/sfswitch/commit/3775677390ad5c6e97f2259dfe5cc6eee66f0b07
@benedwards44 Did anyone ever find out what was really causing this error. I am setting up a user in our production instance and they are getting this error. However, when I log into Switch, I am able to pull down the metdata without any issues. The new user is set up with the same permissions as I have. What could be causing this issue? Could this be related to SSO by any chance?
Salesforce says it's a null value being passed somewhere but I haven't been able to get my own heroku instance up and running yet to test. This code base has some outdated requirements.txt / framework versions and is missing a few things (IE need SECRET_KEY env variable). I'm definitely at the edge of my knowledge and hacking my way beyond if anyone wants to lend a hand!
May your day continue to be filled with awesome, Sent from mobile, please excuse brevity, tone, or typos.
On Mon, Nov 16, 2020, 10:40 AM kharrell5 [email protected] wrote:
Did anyone ever find out what was really causing this error. I am setting up a user in our production instance and they are getting this error. However, when I log into Switch, I am able to pull down the metdata without any issues. The new user is set up with the same permissions as I have. What could be causing this issue?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/benedwards44/sfswitch/issues/12#issuecomment-728249990, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARMB74WPC2A7KU2KYV4KHQTSQFW2TANCNFSM4FMT72WQ .
Thanks Kyle.
I was able to resolve the issue by giving the new user some additional permissions that they needed.
[cid:[email protected]]https://www.linkedin.com/company/seismic-software/ [cid:[email protected]]https://twitter.com/SeismicSoftware [cid:[email protected]]https://www.instagram.com/seismic_software/
From: Kyle [email protected]
Salesforce says it's a null value being passed somewhere but I haven't been able to get my own heroku instance up and running yet to test. This code base has some outdated requirements.txt / framework versions and is missing a few things (IE need SECRET_KEY env variable). I'm definitely at the edge of my knowledge and hacking my way beyond if anyone wants to lend a hand!
May your day continue to be filled with awesome, Kyle Handley Sent from mobile, please excuse brevity, tone, or typos.
On Mon, Nov 16, 2020, 10:40 AM kharrell5 <[email protected]mailto:[email protected]> wrote:
Did anyone ever find out what was really causing this error. I am setting up a user in our production instance and they are getting this error. However, when I log into Switch, I am able to pull down the metdata without any issues. The new user is set up with the same permissions as I have. What could be causing this issue?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/benedwards44/sfswitch/issues/12#issuecomment-728249990, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARMB74WPC2A7KU2KYV4KHQTSQFW2TANCNFSM4FMT72WQ .
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbenedwards44%2Fsfswitch%2Fissues%2F12%23issuecomment-728380394&data=04%7C01%7Ckharrell%40seismic.com%7C9b0f998eda464cb74eb508d88a83150e%7C3566798d3d314a2fa3df3a4fe9c9fd40%7C1%7C0%7C637411642890269907%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=DuoC6A5V2FBj8EzRBQfx9o2tuQWySSLIf62kIKcitg4%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARY3262NKLALX7P2WUILPNDSQGU75ANCNFSM4FMT72WQ&data=04%7C01%7Ckharrell%40seismic.com%7C9b0f998eda464cb74eb508d88a83150e%7C3566798d3d314a2fa3df3a4fe9c9fd40%7C1%7C0%7C637411642890279864%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=sWxOGM4MTx1m1upZvuZP135ugitZAsmA4J6h0gNIscI%3D&reserved=0.
What was it? Maybe that can fix mine
May your day continue to be filled with awesome, Kyle Sent from mobile, please excuse brevity, tone, or typos.
On Mon, Nov 16, 2020, 3:50 PM kharrell5 [email protected] wrote:
Thanks Kyle.
I was able to resolve the issue by giving the new user some additional permissions that they needed.
Kathy Harrell Sr. Salesforce Operations Analyst [email protected] | 919.210.8687 Seismic | www.seismic.comhttp://www.seismic.com/ [cid:[email protected]] [cid:[email protected]]
[cid:[email protected]]< https://www.linkedin.com/company/seismic-software/> [cid:[email protected]]https://twitter.com/SeismicSoftware [cid:[email protected]]< https://www.instagram.com/seismic_software/>
From: Kyle [email protected] Sent: Monday, November 16, 2020 5:58 PM To: benedwards44/sfswitch [email protected] Cc: Kathy Harrell [email protected]; Comment < [email protected]> Subject: Re: [benedwards44/sfswitch] Salesforce Switch Error (#12)
Salesforce says it's a null value being passed somewhere but I haven't been able to get my own heroku instance up and running yet to test. This code base has some outdated requirements.txt / framework versions and is missing a few things (IE need SECRET_KEY env variable). I'm definitely at the edge of my knowledge and hacking my way beyond if anyone wants to lend a hand!
May your day continue to be filled with awesome, Kyle Handley Sent from mobile, please excuse brevity, tone, or typos.
On Mon, Nov 16, 2020, 10:40 AM kharrell5 <[email protected]<mailto: [email protected]>> wrote:
Did anyone ever find out what was really causing this error. I am setting up a user in our production instance and they are getting this error. However, when I log into Switch, I am able to pull down the metdata without any issues. The new user is set up with the same permissions as I have. What could be causing this issue?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/benedwards44/sfswitch/issues/12#issuecomment-728249990>,
or unsubscribe < https://github.com/notifications/unsubscribe-auth/ARMB74WPC2A7KU2KYV4KHQTSQFW2TANCNFSM4FMT72WQ>
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub< https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbenedwards44%2Fsfswitch%2Fissues%2F12%23issuecomment-728380394&data=04%7C01%7Ckharrell%40seismic.com%7C9b0f998eda464cb74eb508d88a83150e%7C3566798d3d314a2fa3df3a4fe9c9fd40%7C1%7C0%7C637411642890269907%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=DuoC6A5V2FBj8EzRBQfx9o2tuQWySSLIf62kIKcitg4%3D&reserved=0>, or unsubscribe< https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARY3262NKLALX7P2WUILPNDSQGU75ANCNFSM4FMT72WQ&data=04%7C01%7Ckharrell%40seismic.com%7C9b0f998eda464cb74eb508d88a83150e%7C3566798d3d314a2fa3df3a4fe9c9fd40%7C1%7C0%7C637411642890279864%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=sWxOGM4MTx1m1upZvuZP135ugitZAsmA4J6h0gNIscI%3D&reserved=0>.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/benedwards44/sfswitch/issues/12#issuecomment-728437115, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARMB74WK4UIL7ZZ7VUF6U73SQG3GFANCNFSM4FMT72WQ .