Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
8 subscribers
Views
2449 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
I have a form that contains a field of type Document and which displays an embed
kevind605
over 10 years ago
I have a form that contains a field of type Document and which displays an embedded PDF. This works fine. However, when I add a paging grid to the form in order to display some other data, the form throws a system error and won't display. If I remove the Document field, the paging grid displays with no problem. So the paging grid and the Document field both work by themselves but not on the same form. Also, I if go back into the task a second time the form will display both the grid and the PDF without issue. Why does it blow up the first time I try to display the task?...
OriginalPostID-104195
OriginalPostID-104195
Discussion posts and replies are publicly visible
0
Aleksi White
Appian Employee
over 10 years ago
This could be a page timeout.
You can try using Javascript setTimeout() to create a function to delay the load. This won't work with Tempo however. More information can be found here:
forum.appian.com/.../Forms_Designer
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
If you are not using JavaScript at all I don't think this can be a race condition, however the symptoms suggests you need to do the following:
Open runtime_ear|ear/suite.ear/custom.properties and review the values of
conf.suite.SCHEME=
conf.suite.SERVER_AND_PORT=
you need to make sure the match the exact URL you are using to access Appian. The error you are seeing suggests there's a mismatch between those settings and the URL you are using in the browser.
For the example above the URL would be
myserver.appiancorp.com:8080/suite
while for these other example
conf.suite.SCHEME=https
conf.suite.SERVER_AND_PORT=myserver.appiancorp.com
it would be
myserver.appiancorp.com/suite
One more example
conf.suite.SCHEME=http
conf.suite.SERVER_AND_PORT=myserver.appiancorp.com
would be
myserver.appiancorp.com/suite
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kevind605
over 10 years ago
thanks for the ideas. I tried the setTimeout() on the PDF inline document display but that did not help. It delayed the load but the same error occurred. I also verified that the custom.properties parameters listed above are correct and consistent with the URL I'm using. By the way, I can duplicate this behavoir in several environments. Any other suggestions?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kevind605
over 10 years ago
Some more info on this...here's the appian log error:
2014-03-20 13:05:56,940 [http-/0.0.0.0:8080-23] ERROR com.appiancorp.km.actions.GetDocumentAction - The Document id is invalid. (id=)
java.lang.NumberFormatException: For input string: ""
For some reason the document ID is apparently null when it tries to load the document. But if remove the paging grid, this doesn't happen. The document load works fine. Also, I can re-display the task form after the error occurs and the document loads fine.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Aleksi White
Appian Employee
over 10 years ago
Check that there aren't any hidden fields (such as using "only show this field when..."). There have been a few cases where hidden fields caused similar issues.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kevind605
over 10 years ago
Thanks. I checked and there are no hidden fields. The only fields on the form are the paging grid and the document field for displaying the document, and also a submit button.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Aleksi White
Appian Employee
over 10 years ago
Review all your inputs and make sure any passed values are of the expected type. Also make sure there are no null values being returned where there is a value expected.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel