I work in Firebird 2.5 database:
Occasionally (not always) I get the following error when I run some stored procedures or views (database objects) that use the LRTRIM fu
To me the solution was:
In your current setup you seem to have two Firebird servers
Your UDF declaration points to module UDF
, which is not a standard UDF, so this is most likely provided by your client to use with their database. You only have the libraries for these UDF in the 32 bit server installation, this means that you can only use the 32 bit server. Under some unknown conditions, you switch between the 32 bit and 64 bit server, meaning that subsequent connections are made to the 64 bit server, which doesn't have the required UDF which then leads to the error. You should uninstall the 64 bit server so this can't happen.
You comment that you need both because of SRSS, but that isn't the case. You only need one Firebird server (32 bit or 64 bit; in this case 32 bit because of the UDF), and the client libraries (32 bit and 64 bit) for your applications.
So what you need to do:
And finally double check the connection strings or connection properties to ensure that you are always connecting to the same server (host & port), and that you aren't accidentally using an embedded connection.