Códigos de Erro do PowerBuilder

Códigos de Erro do PowerBuilder

Overview

A programação em PowerBuilder pode às vezes apresentar desafios inesperados, especialmente quando se depara com mensagens de erro enigmáticas. Neste post, vasculhamos essas mensagens, oferecendo uma lista detalhada de códigos de erro, desde referências de aplicação não resolvidas a complicações com DLLs. Se está procurando decifrar esses códigos e agilizar seu processo de solução de problemas, junte-se a nós nesta exploração técnica, onde o conhecimento se torna a chave para ultrapassar os obstáculos da programação no PowerBuilder.

Raramente, quando o PowerBuilder fecha de forma inesperada, ele mostra uma mensagem de erro com um código. Abaixo está a lista com estes erros e as descrições deles.

Como a lista é grande, não colocarei exemplos para cada item. Pelo menos não agora.

ErrorDescription
R0001Application reference could not be resolved. The application object can not be found. In most cases this happens when the application object PBL is created as EXE and PBD at the same time.
R0001Divide by zero
R0002Null object reference or Error failure loading dynamic library. A referenced object is not valid (not created). Can also occur when the object in question cannot be found in the EXE or in one of the PBDs/DLLs.
R0002Null object reference
R0003Array boundary exceeded. The value of the index does not exists in the array.
R0004Enumerated value is out of range for function
R0005Negative value encountered. Some PowerBuilder functions do not allow to have negative values passed to them.
R0006Invalid datawindow row/column specified. Check for row 0 or rownumbers higher than the rowcount or for invalid column names.
R0007Database interface does not support remote procedure calls, or Error unresolvabled external when linking reference. In the latter, when running the exe, be sure all PBDs/DLLs can be found.
R0007Unresolvable external when linking reference
R0008Reference of array with null subscript
R0009Unresolved external when linking reference. In most cases, a PBL is missing from the library searchpath. In other words, at runtime, a specific object can not be found.
R0009DLL function not found in current application
R0010Unsupported argument type in dll function . Check what datatypes are used and check if they are supported.
R0011Internal Runtime engine Failure-Contact Powersoft tech. Support (NOOP) or Object file is out of date must be converted to later version. Full rebuild!
R0011Object file is out of date and must be converted to current version
R0012Internal runtime engine failure. Contact PowerSoft Technical Support. NOOP. Full Rebuild Or error: dw column type does not match getitem type. Check the GetItemX functions and see if the datatype of the column you get the data from matches with the datatype of the variable you put it in.
R0012DataWindow column type does not match GetItem type
R0013Unresolved property reference
R0014Error opening DLL library .DLL for external function. DLL can not be found or DLL is not of the same alignment as the PB EXE (bot should be 16bit or 32bit)
R0015Error calling external function. External function does not exists in the given DLL. Check name of function. In 32bit, these are also case sensitive.
R0016Maximum string length exceeded. String exceeds 60000 char limit. With 16bit PB, strings can have as much as 60000 chars. Or negative argument for the space() function.
R0017DataWindow referenced in DataWindow object does not exist
R0018Function doesn’t return value. PB expects the function to return a value but due to a if-then-else statement, the function does not return a value.
R0019Cannot convert string in Any variable to . The datatype of the contents of the ANY variable must match the datatype of the variable to which you want to assign the ANY variable.
R0020SQL has not been properly prepared. Wrong dynamic Sql coding.
R0020DB command has not been successfully prepared. Wrong dynamic Sql coding.
R0020Database command has not been successfully prepared
R0021Bad runtime function reference. The called function has been changed while the scripts calling this function have not been regenerated to see the new function changes. Regenerate!
R0022Unknown object type . Wrong dynamic coding. PB can not create an object with a specified type it doesn’t know (mostly specified as a string with typos).
R0023Cannot assign object of type to variable of type . You cannot assign a window to a menu object for instance.
R0024(External) Function call does not match function definition. Check function definition and check this with the (external) function declaration.
R0025Double or Real expression has overflowed. Dubious error.
R0026Runtime assignment not supported…(runtime assignment). Some properties are readonly and many not be modified a runtime such menuitem shortcuts, window windowtypes etc.
R0026Field name assignment not supported
R0027Cannot take a negative to a noninteger power
R0028VBX Error: name
R0029Specified argument type differs from required argument type at runtime. Regenerate to see the offending line / object.
R0029Nonarray expected in ANY variable
R0030External object does not support data type .
R0031External object data type namenot supported
R0032Name not found calling external object . OLE error, dynamic function calls fails because the function does not exist
R0033Invalid parameter type calling external object function. Function fails because the OLE object function expects another datatype for one of its arguments.
R0034Incorrect number of parameters calling external function
R0035Error calling external object function . The external function call fails because for instance the OLE object/server has died.
R0036Name not found accessing external object property .
R0037Type mismatch accessing external object property
R0038Incorrect number of subscripts accessing external object property name
R0039Error accessing external object property .
R0040Argument mismatch with any type at line x of the function.
R0040Mismatched ANY data types in expression
R0041Illegal ANY data type in expression
R0042Specified argument type differs from required argument type at runtime in DLL function . One of the external function arguments except a value of another type.
R0043Parent object doesn’t exist
R0044Function has conflicting argument or return type in ancestor
R0045Internal table overflow, max number of objects exceeded. With 16bit PB, you can have a maximum of 2729 objects alive at one time. 32bit PB, limited by hardware.
R0046Specified arguments differs from definition. The called function/event is defined different. Regenerate the calling object to find the offending code.
R0046Null object reference cannot be assigned or passed to a variable of this type
R0047Array expected in ANY variable
R0048Size mismatch in array to object conversion
R0049Type mismatch in ANY to object conversion
R0049Type mismatch in array to object conversion
R0050Application reference can not be resolved. One possibility is that some (PB) DLLs are missing or of a wrong version. See R0001 also.
R0050Distributed Service Error
R0051Bad Argument List for Function/Event
R0052Distributed Communications Error
R0053Requested server not active
R0054Server not accepting requests
R0055Request terminated abnormally
R0056DB interface does not support remote procedure calls
R0056Response to request incomplete
R0057Not connected to DPB server
R0058Object instance does not exist
R0059Invalid column range
R0060Internal runtime engine failure. contact ps tech support (noop). This error happens when migrating. Regenerate all sources in the old PB environment first before migrating. Secondly, what when the error occurs and modify (outcomment) the source in the old PB env and migrate again.
R0060Invalid row range
R0061Invalid conversion of number dimensional array to object
R0062Server busy
R0063Function/event with no return value used in expression
R0064Object array expected in left side of assignment
R0065Dynamic function not found. If you cann a function using the DYNAMIC keyword and the function can not be found at runtime, you get this error. Or, there is a pass by value/reference mismatch.
R0066Invalid subscript for array index operation
R0067NULL object reference cannot be assigned or passed to an autoinstantiate
R0068NULL object reference cannot be passed to external DLL function name
R0069Function name cannot be called from a secured runtime session
R0070External DLL function name cannot be called from a secured runtime session
R0071General protection fault occurred
R0072name failed with an operating system error code of number
R0073Reference parameters cannot be passed to an asynchronous shared/remote object method
R0074Reference parameters cannot be passed to a shared object method
R0075The server has forced the client to disconnect
R0076Passing NULL as a parameter to external function name
R0077Object passed to shared/remote object method is not a nonvisual user object
R0078Listen can only be done in Enterprise version of PowerBuilder
R0079The argument to name must be an array
R0080The server has timed out the client connection
R0081Function argument file creator must be a four character string
R0082Function argument file type must be a four character string
R0083Attempt to invoke a function or event that is not accessible
R0084Wrong number of arguments passed to function/event call
R0085Error in reference argument passed in function/event call
R0086Ambiguous function/event reference
R0087The connection to the server has been lost
R0088Cannot ask for ClassDefinition Information on open painter: name
R00895.0 style proxy objects are not supported. Copy the new style proxy that was generated at migration time
R0090Cannot assign array of type name to variable of type array of name
R1004Null object reference. See R0002.
R1005Array boudary exceeded. See R0003
R1009Unresolvable external <> when linking reference. See R0009.
R1012Object file <> is out of date, must be converted to current version. Migrate / regenerate. When this is failing, export the object, change the contents and import it again. Backup first
R1013Object file <> is out of date, must be converted to current version. See R1012.
R1016Error opening DLL for external function . See R0014.
R1017Error calling external function. See R0035.
R1023Bad runtime function reference. See R0021.
R1025Cannot assign object of type to variable of type . See R0023.
R1032Cannot find datatype.
R1034Name not found calling external object function. See R0032.
R1037Error calling external object function See.R0015.
R1041Error accessing external object property of .
R1053??
R1071Function cannot be called from a secured runtime session. Has to do with using the window plugin and the security settings in the Internet Explorer
R1075Reference parameters cannot be passed to shared/remote objects.
R1078Passing NULL as parameter to external function. Should be fixed.
R1085Attempt to invoke a function or event that is not accessible (i.e private of protected )
R1090Cannot ask for Class Definition on open painter (iow, cannot debug when painters are open)
R4198OLE command failed. OLE error generated by OLE server.

Referência: