Skip to main content
Solved

The Powershell command running and getting timeout during the FSM installation

  • December 29, 2021
  • 2 replies
  • 197 views

Chathuranga Samarakoon
Hero (Partner)
Forum|alt.badge.img+12

The Powershell command running and getting timeout during the FSM installation during the deployment of MetadataInsert_2.sql.

Best answer by Chathuranga Samarakoon

Hi @SanjeewaJ ,

I was able to resolve my issue by adding “-QueryTimeout 1000 `” line in FSM_Upgrade.ps1 script. 

I’ll update you post as well you can try it.

1{
2If ($adminUser)
3 {
4 Invoke-Sqlcmd `
5 -QueryTimeout 1000 `
6 -serverInstance $($server) `
7 -Username $($adminUser) `
8 -Password $($adminPass) `
9 -Database $($dbName) `
10 -InputFile ".\FSM_570_MetadataInsert_2.sql" `
11 -ErrorAction stop `
12 -Verbose > ".\metadata_2.log" 4>&1
13 }
14Else
15 {
16 Invoke-Sqlcmd `
17 -QueryTimeout 1000 `
18 -serverInstance $($server) `
19 -Database $($dbName) `
20 -InputFile ".\FSM_570_MetadataInsert_2.sql" `
21 -ErrorAction stop `
22 -Verbose > ".\metadata_2.log" 4>&1
23 }
24}

 

View original
Did this topic help you find an answer to your question?

2 replies

SanjeewaJ
Superhero (Employee)
Forum|alt.badge.img+12
  • Superhero (Employee)
  • 89 replies
  • January 3, 2022

Hi @Chathuranga Samarakoon 

Are you having similar issue as I encountered/reported in below post?

 

I reported a support case (G2305915) and it is being investigated now by GSD.

Please share more details, if similar, we can connect both issues together.

/Sanjeewa


Chathuranga Samarakoon
Hero (Partner)
Forum|alt.badge.img+12

Hi @SanjeewaJ ,

I was able to resolve my issue by adding “-QueryTimeout 1000 `” line in FSM_Upgrade.ps1 script. 

I’ll update you post as well you can try it.

1{
2If ($adminUser)
3 {
4 Invoke-Sqlcmd `
5 -QueryTimeout 1000 `
6 -serverInstance $($server) `
7 -Username $($adminUser) `
8 -Password $($adminPass) `
9 -Database $($dbName) `
10 -InputFile ".\FSM_570_MetadataInsert_2.sql" `
11 -ErrorAction stop `
12 -Verbose > ".\metadata_2.log" 4>&1
13 }
14Else
15 {
16 Invoke-Sqlcmd `
17 -QueryTimeout 1000 `
18 -serverInstance $($server) `
19 -Database $($dbName) `
20 -InputFile ".\FSM_570_MetadataInsert_2.sql" `
21 -ErrorAction stop `
22 -Verbose > ".\metadata_2.log" 4>&1
23 }
24}

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings