i2b2 Sponsored Project/s:
Three of the create stored procedures scripts for PostgreSQL will return the following error when they are run:
"Too many parameters specified for RAISE"
The three scripts that have the problem are:
"create_temp_patient_table"
"create_temp_pid_table"
"create_temp_eid_table"
LINE CAUSING THE ERROR:
The following line can be found in all three scripts and is causing the errors:
RAISE NOTICE '%%%', SQLSTATE, ' - ' , SQLERRM;
REASON:
In PostgreSQL ‘RAISE NOTICE’ can only have two parameters defined.
{"report":{"fcp":922.7999999988824,"ttfb":263,"pageVisibility":"visible","entityId":11183,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":16,"apdex":1,"journeyId":"582c0e11-abf6-4dee-93a6-ab846f9bcefb","navigationType":0,"readyForUser":979.5,"redirectCount":0,"resourceLoadedEnd":1169.699999999255,"resourceLoadedStart":274.2999999988824,"resourceTiming":[{"duration":291.40000000037253,"initiatorType":"link","name":"https://community.i2b2.org/jira/s/7fd763ecdf5ed1f47fc4d22fa8382e97-CDN/4x9nqn/820011/16zrvj4/49fa3aa3d35a2cc689cbf274e66cc41a/_/download/contextbatch/css/_super/batch.css","startTime":274.2999999988824,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274.2999999988824,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":565.6999999992549,"responseStart":0,"secureConnectionStart":0},{"duration":291.7999999988824,"initiatorType":"link","name":"https://community.i2b2.org/jira/s/898b8076c5e82f53cd816ca393e45a56-CDN/4x9nqn/820011/16zrvj4/f614b50eeb842ebd1ea7ab2903699907/_/download/contextbatch/css/project.issue.navigator,jira.view.issue,jira.global,atl.general,-_super/batch.css?jira.create.linked.issue=true&richediton=true","startTime":274.59999999962747,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274.59999999962747,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":566.3999999985099,"responseStart":0,"secureConnectionStart":0},{"duration":316.30000000074506,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/4c9c503fe98f210445831b0d7b0cdc33-CDN/4x9nqn/820011/16zrvj4/49fa3aa3d35a2cc689cbf274e66cc41a/_/download/contextbatch/js/_super/batch.js?locale=en-US","startTime":274.7999999988824,"connectEnd":274.7999999988824,"connectStart":274.7999999988824,"domainLookupEnd":274.7999999988824,"domainLookupStart":274.7999999988824,"fetchStart":274.7999999988824,"redirectEnd":0,"redirectStart":0,"requestStart":274.7999999988824,"responseEnd":591.0999999996275,"responseStart":591.0999999996275,"secureConnectionStart":274.7999999988824},{"duration":390.69999999925494,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/694e598c1ae48b0f96655173631cd247-CDN/4x9nqn/820011/16zrvj4/f614b50eeb842ebd1ea7ab2903699907/_/download/contextbatch/js/project.issue.navigator,jira.view.issue,jira.global,atl.general,-_super/batch.js?jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":275.09999999962747,"connectEnd":275.09999999962747,"connectStart":275.09999999962747,"domainLookupEnd":275.09999999962747,"domainLookupStart":275.09999999962747,"fetchStart":275.09999999962747,"redirectEnd":0,"redirectStart":0,"requestStart":275.09999999962747,"responseEnd":665.7999999988824,"responseStart":665.7999999988824,"secureConnectionStart":275.09999999962747},{"duration":409.40000000037253,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/53f54e0ac3f00bb56b136b4d2fff2853-CDN/4x9nqn/820011/16zrvj4/aae1242f5fc81cc6a5bb8bc963ccda29/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en-US","startTime":275.19999999925494,"connectEnd":275.19999999925494,"connectStart":275.19999999925494,"domainLookupEnd":275.19999999925494,"domainLookupStart":275.19999999925494,"fetchStart":275.19999999925494,"redirectEnd":0,"redirectStart":0,"requestStart":275.19999999925494,"responseEnd":684.5999999996275,"responseStart":684.5999999996275,"secureConnectionStart":275.19999999925494},{"duration":422,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/4x9nqn/820011/16zrvj4/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":275.2999999988824,"connectEnd":275.2999999988824,"connectStart":275.2999999988824,"domainLookupEnd":275.2999999988824,"domainLookupStart":275.2999999988824,"fetchStart":275.2999999988824,"redirectEnd":0,"redirectStart":0,"requestStart":275.2999999988824,"responseEnd":697.2999999988824,"responseStart":697.1999999992549,"secureConnectionStart":275.2999999988824},{"duration":428.8999999985099,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/4x9nqn/820011/16zrvj4/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":275.5,"connectEnd":275.5,"connectStart":275.5,"domainLookupEnd":275.5,"domainLookupStart":275.5,"fetchStart":275.5,"redirectEnd":0,"redirectStart":0,"requestStart":275.5,"responseEnd":704.3999999985099,"responseStart":704.3999999985099,"secureConnectionStart":275.5},{"duration":430.40000000037253,"initiatorType":"link","name":"https://community.i2b2.org/jira/s/30748292e4ca68be6947d7969829384b-CDN/4x9nqn/820011/16zrvj4/4f66da484ef7d95a2a604d3ab014374c/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":275.59999999962747,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275.59999999962747,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":706,"responseStart":0,"secureConnectionStart":0},{"duration":428.8999999985099,"initiatorType":"script","name":"https://community.i2b2.org/jira/rest/api/1.0/shortcuts/820011/766848d8ff8ea3676a80e44dfb51696a/shortcuts.js?context=issuenavigation&context=issueaction","startTime":276,"connectEnd":276,"connectStart":276,"domainLookupEnd":276,"domainLookupStart":276,"fetchStart":276,"redirectEnd":0,"redirectStart":0,"requestStart":276,"responseEnd":704.8999999985099,"responseStart":704.8999999985099,"secureConnectionStart":276},{"duration":401.3999999985099,"initiatorType":"link","name":"https://community.i2b2.org/jira/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/4x9nqn/820011/16zrvj4/efa42a25652b26dfd802540c024826b3/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.css?jira.create.linked.issue=true&richediton=true","startTime":309,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":309,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":710.3999999985099,"responseStart":0,"secureConnectionStart":0},{"duration":399.7999999988824,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/8087506fefd02b4096991c90836b49f6-CDN/4x9nqn/820011/16zrvj4/efa42a25652b26dfd802540c024826b3/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.js?jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":309.09999999962747,"connectEnd":309.09999999962747,"connectStart":309.09999999962747,"domainLookupEnd":309.09999999962747,"domainLookupStart":309.09999999962747,"fetchStart":309.09999999962747,"redirectEnd":0,"redirectStart":0,"requestStart":309.09999999962747,"responseEnd":708.8999999985099,"responseStart":708.8999999985099,"secureConnectionStart":309.09999999962747},{"duration":763.4000000003725,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/4x9nqn/820011/16zrvj4/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":320.3999999985099,"connectEnd":320.3999999985099,"connectStart":320.3999999985099,"domainLookupEnd":320.3999999985099,"domainLookupStart":320.3999999985099,"fetchStart":320.3999999985099,"redirectEnd":0,"redirectStart":0,"requestStart":320.3999999985099,"responseEnd":1083.7999999988824,"responseStart":1083.7999999988824,"secureConnectionStart":320.3999999985099},{"duration":838.0999999996275,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/4x9nqn/820011/16zrvj4/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":331.59999999962747,"connectEnd":331.59999999962747,"connectStart":331.59999999962747,"domainLookupEnd":331.59999999962747,"domainLookupStart":331.59999999962747,"fetchStart":331.59999999962747,"redirectEnd":0,"redirectStart":0,"requestStart":331.59999999962747,"responseEnd":1169.699999999255,"responseStart":1169.699999999255,"secureConnectionStart":331.59999999962747},{"duration":347.59999999962747,"initiatorType":"xmlhttprequest","name":"https://community.i2b2.org/jira/rest/webResources/1.0/resources","startTime":821.5999999996275,"connectEnd":821.5999999996275,"connectStart":821.5999999996275,"domainLookupEnd":821.5999999996275,"domainLookupStart":821.5999999996275,"fetchStart":821.5999999996275,"redirectEnd":0,"redirectStart":0,"requestStart":821.5999999996275,"responseEnd":1169.199999999255,"responseStart":1169.199999999255,"secureConnectionStart":821.5999999996275}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":210,"connectEnd":234,"secureConnectionStart":222,"requestStart":234,"responseStart":263,"responseEnd":331,"domLoading":267,"domInteractive":1248,"domContentLoadedEventStart":1248,"domContentLoadedEventEnd":1299,"domComplete":1465,"loadEventStart":1465,"loadEventEnd":1465,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1188.0999999996275},{"name":"bigPipe.sidebar-id.end","time":1191.2999999988824},{"name":"bigPipe.activity-panel-pipe-id.start","time":1191.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1192.5999999996275},{"name":"activityTabFullyLoaded","time":1346.8999999985099}],"measures":[],"correlationId":"86b53f1ad478c0","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":84,"dbReadsTimeInMs":7,"dbConnsTimeInMs":10,"applicationHash":"0629dd8d260e3954ece49053e565d01dabe11609","experiments":[]}}
RAISE NOTICE '%%%', SQLSTATE || ' - ' || SQLERRM;