- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
While compiling and installing the Splunk phantom Application which I have developed, I am getting an error with error code: C901 and message: is too complex (33).
What I have made the mistake and how to fix the issue.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

This error is more of a style/best-practise error over functionality. Whenever you compile an app, phantom validates the function and style of the code. For example, It will complain if too many blank spaces/lines between functions etc. As you saw by moving code into a class it corrected the complaint. For just style errors you can use -d on the script to stop the style check.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

This error is more of a style/best-practise error over functionality. Whenever you compile an app, phantom validates the function and style of the code. For example, It will complain if too many blank spaces/lines between functions etc. As you saw by moving code into a class it corrected the complaint. For just style errors you can use -d on the script to stop the style check.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the solution.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Can you provide more detail about what exactly your app is doing?
Is this a phantom playbook you are building?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am developing an integration application. The error has gone off when I moved some part of the code as a function and calling the same. But not sure why it showing as error C901.
Did the framework allows only a limited number of lines of code in action as I have seen the same in the no.of characters in a single line?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Chandra,
I am not familiar with your specific error but I have encountered my set of issues with the Application Development portion. I believe this is an area that needs to be improved a bit more. That being said have you taken a look at the app development documentation. Breaking it down by section and maybe uncompiling one of the installed apps might give you an idea on what you are missing.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have gone through the app development documentation but no where I have found the info reg the error codes that are being encountered during development. It would be nice if there is the information reg the error codes or if it is there in the documentation I guess I missed it.
I have got rid of that error I faced when I moved a bunch of code into a different class.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Interesting! Which version of phantom are you running? Is it Python3 or 2? Did you move them to a pre staged class from the application development template or did you create your own?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using python3. I have moved it to the class which I have created on my own
