OfficeOnlineServerFarm DSC error: "value does not fall within the expected range."

Yim, Sam 126 Reputation points
2022-05-04T15:26:09.087+00:00

I'm trying to create the Office Online Server Farm using DSC. I'm using version 1.5. I'm thinking the internalUrl is causing the issue, is there a URL I could use to test this?

this is the log for the error I'm getting:

{"time": "2022-05-04T14:59:29.783+00:00", "type": "verbose", "message": "[PZUYSOOS01]: LCM: [ Start Resource ] [[OfficeOnlineServerInstall]InstallBinaries] "},
{"time": "2022-05-04T14:59:29.783+00:00", "type": "verbose", "message": "[PZUYSOOS01]: LCM: [ Start Test ] [[OfficeOnlineServerInstall]InstallBinaries] "},
{"time": "2022-05-04T14:59:29.798+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Testing for installation of Office Online Server"},
{"time": "2022-05-04T14:59:29.798+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Getting details of installation of Office Online Server"},
{"time": "2022-05-04T14:59:29.798+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Checking file status of C:\Installers\OOS\setup.exe"},
{"time": "2022-05-04T14:59:29.798+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Path refers to drive C"},
{"time": "2022-05-04T14:59:29.845+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Volume is a fixed drive: Perform Blocked File test"},
{"time": "2022-05-04T14:59:29.845+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Checking status now"},
{"time": "2022-05-04T14:59:29.861+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] File not blocked, continuing."},
{"time": "2022-05-04T14:59:29.876+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Current Values: Ensure=Absent; Path=C:\Installers\OOS\setup.exe"},
{"time": "2022-05-04T14:59:29.892+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Target Values: Ensure=Present; Path=C:\Installers\OOS\setup.exe; Verbose=True"},
{"time": "2022-05-04T14:59:29.892+00:00", "type": "verbose", "message": "[PZUYSOOS01]: LCM: [ End Test ] [[OfficeOnlineServerInstall]InstallBinaries] in 0.1090 seconds."},
{"time": "2022-05-04T14:59:29.892+00:00", "type": "verbose", "message": "[PZUYSOOS01]: LCM: [ Start Set ] [[OfficeOnlineServerInstall]InstallBinaries] "},
{"time": "2022-05-04T14:59:29.892+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Starting installation of Office Online Server"},
{"time": "2022-05-04T14:59:29.907+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Checking file status of C:\Installers\OOS\setup.exe"},
{"time": "2022-05-04T14:59:29.907+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Path refers to drive C"},
{"time": "2022-05-04T14:59:29.939+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Volume is a fixed drive: Perform Blocked File test"},
{"time": "2022-05-04T14:59:29.939+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Checking status now"},
{"time": "2022-05-04T14:59:29.939+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] File not blocked, continuing."},
{"time": "2022-05-04T14:59:29.939+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Checking if Path is a UNC path"},
{"time": "2022-05-04T15:00:49.144+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerInstall]InstallBinaries] Installation of Office Online Server succeeded."},
{"time": "2022-05-04T15:00:49.144+00:00", "type": "verbose", "message": "[PZUYSOOS01]: LCM: [ End Set ] [[OfficeOnlineServerInstall]InstallBinaries] in 79.2530 seconds."},
{"time": "2022-05-04T15:00:49.144+00:00", "type": "verbose", "message": "[PZUYSOOS01]: LCM: [ End Resource ] [[OfficeOnlineServerInstall]InstallBinaries] "},
{"time": "2022-05-04T15:00:49.144+00:00", "type": "verbose", "message": "[PZUYSOOS01]: LCM: [ Start Resource ] [[OfficeOnlineServerFarm]LocalFarm] "},
{"time": "2022-05-04T15:00:49.144+00:00", "type": "verbose", "message": "[PZUYSOOS01]: LCM: [ Start Test ] [[OfficeOnlineServerFarm]LocalFarm] "},
{"time": "2022-05-04T15:00:49.207+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerFarm]LocalFarm] Testing settings for local Office Online Server"},
{"time": "2022-05-04T15:00:49.285+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerFarm]LocalFarm] Office Online Server 2016 install detected. All parameters are enabled"},
{"time": "2022-05-04T15:00:55.457+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerFarm]LocalFarm] It does not appear that this machine is part of an Office Online Server farm."},
{"time": "2022-05-04T15:00:55.488+00:00", "type": "verbose", "message": "[PZUYSOOS01]: LCM: [ End Test ] [[OfficeOnlineServerFarm]LocalFarm] in 6.3440 seconds."},
{"time": "2022-05-04T15:00:55.520+00:00", "type": "verbose", "message": "[PZUYSOOS01]: LCM: [ Start Set ] [[OfficeOnlineServerFarm]LocalFarm] "},
{"time": "2022-05-04T15:00:55.520+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerFarm]LocalFarm] Updating settings for local Office Online Server"},
{"time": "2022-05-04T15:00:55.582+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerFarm]LocalFarm] Office Online Server 2016 install detected. All parameters are enabled"},
{"time": "2022-05-04T15:00:55.582+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerFarm]LocalFarm] It does not appear that this machine is part of an Office Online Server farm."},
{"time": "2022-05-04T15:00:55.582+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerFarm]LocalFarm] Installing new WebAppsFarm"},
{"time": "2022-05-04T15:00:55.988+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [[OfficeOnlineServerFarm]LocalFarm] Performing the operation \"CreateNewFarm\" on target \"OfficeWebAppsFarm\"."},
{"time": "2022-05-04T15:00:59.707+00:00", "type": "error", "message": "Value does not fall within the expected range."},
{"time": "2022-05-04T15:00:59.832+00:00", "type": "verbose", "message": "[PZUYSOOS01]: LCM: [ End Set ] [[OfficeOnlineServerFarm]LocalFarm] in 4.3130 seconds."},
{"time": "2022-05-04T15:00:59.832+00:00", "type": "error", "message": "The PowerShell DSC resource '[OfficeOnlineServerFarm]LocalFarm' with SourceInfo '::275::13::OfficeOnlineServerFarm' threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details."},
{"time": "2022-05-04T15:00:59.926+00:00", "type": "verbose", "message": "[PZUYSOOS01]: [] Consistency check completed."}

this is the DSC code for the farm:

OfficeOnlineServerInstall InstallBinaries
{
     Ensure = "Present"
     Path = $oosInstallerFolder + "setup.exe"
}

if($Node.Role -eq 'PrimaryNode')
{
     OfficeOnlineServerFarm LocalFarm
     {
          InternalURL    = "https://officeonline.contoso.com"
          EditingEnabled = $true
          DependsOn = "[OfficeOnlineServerInstall]InstallBinaries"
     }
}
Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
584 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ceasar Chen_MSFT 4,391 Reputation points
    2022-05-05T02:36:59.46+00:00

    Hi, @Yim, Sam
    Welcome to the Q&A Forum.For the deployment of Office Online Server, you can refer to this official document: deploy-office-online-server, in addition, here are some troubleshooting methods for your reference : troubleshooting-office-online-server-and-office-web-apps-server

    Note: Microsoft is providing this information as a convenience to you.
    The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.