Closed cbhutia closed 4 years ago
Any help is appreciated!
Hi,
That's VF page not Apex code. And even code will not. YOu will need to collect debug logs and share to see where that error is coming from.
Also, make sure you have the latest code for this app as many errors have been fixed in latest code.
On Wed, Mar 4, 2020 at 10:21 AM cbhutia notifications@github.com wrote:
Any help is appreciated!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/survey-force/issues/62?email_source=notifications&email_token=ABV6HLA5UAV4VWDOB56WOQ3RFZWZLA5CNFSM4LBKRFTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENYM7QY#issuecomment-594595779, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV6HLCBOET3OJ74JEVJ26DRFZWZLANCNFSM4LBKRFTA .
Sorry I have almost no idea about coding. I thought that was it. Here's what I received in my email;
Apex script unhandled exception by user/organization: 0050J000009BRjW/00D20000000mMnY
Visualforce Page: /apex/TakeSurvey
caused by: System.NullPointerException: Argument cannot be null.
Class.ViewSurveyController.
On the other hand, I installed the app through the appexchange about a few hours ago. I think it's the latest version(?)
Thing is, it was loading properly. I was going through the installation steps and suddenly it stopped working. I have no idea what I could've changed. I tried undoing what I did, however, it doesn't seem to work anymore now
Code you mentioned is https://github.com/SalesforceLabs/survey-force/blob/master/force-app/main/default/classes/ViewSurveyController.cls Line#57 is surveyId = String.escapeSingleQuotes(surveyId); (That is if you have the latest code, check code in your own org to see what line is that)
Make sure that you are using proper URL and "id=" in the URL is NOT empty. (something like /TakeSurvey?id=xxxxxxx)
On Wed, Mar 4, 2020 at 11:03 AM cbhutia notifications@github.com wrote:
Thing is, it was loading properly. I was going through the installation steps and suddenly it stopped working. I have no idea what I could've changed. I tried undoing what I did, however, it doesn't seem to work anymore now
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/survey-force/issues/62?email_source=notifications&email_token=ABV6HLCELSSLPLH4LIKQVV3RFZ3T3A5CNFSM4LBKRFTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENYU6BA#issuecomment-594628356, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV6HLETBBA6PWQBTYE2LLDRFZ3T3ANCNFSM4LBKRFTA .
Hi! I'm new to all this and I was trying to set up the app, however, I'm getting this error message when I try to preview TakeSurvey VF page.
"An unexpected error has occurred. Your development organization has been notified."
Here's the APEX code: